package cc.orange.entity;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by CM on 2022/10/31.
 */

public class WeatherEntity {

   @SerializedName("msg")
   private String msg;
   @SerializedName("code")
   private int code;
   @SerializedName("data")
   private Data data;

   public String getMsg() {
      return msg;
   }

   public void setMsg(String msg) {
      this.msg = msg;
   }

   public int getCode() {
      return code;
   }

   public void setCode(int code) {
      this.code = code;
   }

   public Data getData() {
      return data;
   }

   public void setData(Data data) {
      this.data = data;
   }

   public static class Data {
      @SerializedName("city")
      private String city;
      @SerializedName("cityid")
      private String cityid;
      @SerializedName("citycode")
      private String citycode;
      @SerializedName("date")
      private String date;
      @SerializedName("week")
      private String week;
      @SerializedName("temp")
      private String temp;
      @SerializedName("temphigh")
      private String temphigh;
      @SerializedName("templow")
      private String templow;
      @SerializedName("humidity")
      private String humidity;
      @SerializedName("pressure")
      private String pressure;
      @SerializedName("windspeed")
      private String windspeed;
      @SerializedName("winddirect")
      private String winddirect;
      @SerializedName("windpower")
      private String windpower;
      @SerializedName("updatetime")
      private String updatetime;
      @SerializedName("weather")
      private String weather;
      @SerializedName("img")
      private String img;
      @SerializedName("index")
      private List<Index> index;
      @SerializedName("aqi")
      private List<Aqi> aqi;
      @SerializedName("daily")
      private List<Daily> daily;
      @SerializedName("hourly")
      private List<Hourly> hourly;

      public String getCity() {
         return city;
      }

      public void setCity(String city) {
         this.city = city;
      }

      public String getCityid() {
         return cityid;
      }

      public void setCityid(String cityid) {
         this.cityid = cityid;
      }

      public String getCitycode() {
         return citycode;
      }

      public void setCitycode(String citycode) {
         this.citycode = citycode;
      }

      public String getDate() {
         return date;
      }

      public void setDate(String date) {
         this.date = date;
      }

      public String getWeek() {
         return week;
      }

      public void setWeek(String week) {
         this.week = week;
      }

      public String getTemp() {
         return temp;
      }

      public void setTemp(String temp) {
         this.temp = temp;
      }

      public String getTemphigh() {
         return temphigh;
      }

      public void setTemphigh(String temphigh) {
         this.temphigh = temphigh;
      }

      public String getTemplow() {
         return templow;
      }

      public void setTemplow(String templow) {
         this.templow = templow;
      }

      public String getHumidity() {
         return humidity;
      }

      public void setHumidity(String humidity) {
         this.humidity = humidity;
      }

      public String getPressure() {
         return pressure;
      }

      public void setPressure(String pressure) {
         this.pressure = pressure;
      }

      public String getWindspeed() {
         return windspeed;
      }

      public void setWindspeed(String windspeed) {
         this.windspeed = windspeed;
      }

      public String getWinddirect() {
         return winddirect;
      }

      public void setWinddirect(String winddirect) {
         this.winddirect = winddirect;
      }

      public String getWindpower() {
         return windpower;
      }

      public void setWindpower(String windpower) {
         this.windpower = windpower;
      }

      public String getUpdatetime() {
         return updatetime;
      }

      public void setUpdatetime(String updatetime) {
         this.updatetime = updatetime;
      }

      public String getWeather() {
         return weather;
      }

      public void setWeather(String weather) {
         this.weather = weather;
      }

      public String getImg() {
         return img;
      }

      public void setImg(String img) {
         this.img = img;
      }

      public List<Index> getIndex() {
         return index;
      }

      public void setIndex(List<Index> index) {
         this.index = index;
      }

      public List<Aqi> getAqi() {
         return aqi;
      }

      public void setAqi(List<Aqi> aqi) {
         this.aqi = aqi;
      }

      public List<Daily> getDaily() {
         return daily;
      }

      public void setDaily(List<Daily> daily) {
         this.daily = daily;
      }

      public List<Hourly> getHourly() {
         return hourly;
      }

      public void setHourly(List<Hourly> hourly) {
         this.hourly = hourly;
      }

      public static class Index {
         @SerializedName("iname")
         private String iname;
         @SerializedName("ivalue")
         private String ivalue;
         @SerializedName("detail")
         private String detail;

         public String getIname() {
            return iname;
         }

         public void setIname(String iname) {
            this.iname = iname;
         }

         public String getIvalue() {
            return ivalue;
         }

         public void setIvalue(String ivalue) {
            this.ivalue = ivalue;
         }

         public String getDetail() {
            return detail;
         }

         public void setDetail(String detail) {
            this.detail = detail;
         }
      }

      public static class Aqi {
         @SerializedName("so2")
         private String so2;
         @SerializedName("so224")
         private String so224;
         @SerializedName("no2")
         private String no2;
         @SerializedName("no224")
         private String no224;
         @SerializedName("co")
         private String co;
         @SerializedName("co24")
         private String co24;
         @SerializedName("o3")
         private String o3;
         @SerializedName("o38")
         private String o38;
         @SerializedName("o324")
         private String o324;
         @SerializedName("pm10")
         private String pm10;
         @SerializedName("pm1024")
         private String pm1024;
         @SerializedName("pm2_5")
         private String pm25;
         @SerializedName("pm2_524")
         private String pm2524;
         @SerializedName("iso2")
         private String iso2;
         @SerializedName("ino2")
         private String ino2;
         @SerializedName("ico")
         private String ico;
         @SerializedName("io3")
         private String io3;
         @SerializedName("io38")
         private String io38;
         @SerializedName("ipm10")
         private String ipm10;
         @SerializedName("ipm2_5")
         private String ipm25;
         @SerializedName("aqi")
         private String aqi;
         @SerializedName("primarypollutant")
         private String primarypollutant;
         @SerializedName("quality")
         private String quality;
         @SerializedName("timepoint")
         private String timepoint;
         @SerializedName("aqiinfo")
         private List<Aqiinfo> aqiinfo;

         public String getSo2() {
            return so2;
         }

         public void setSo2(String so2) {
            this.so2 = so2;
         }

         public String getSo224() {
            return so224;
         }

         public void setSo224(String so224) {
            this.so224 = so224;
         }

         public String getNo2() {
            return no2;
         }

         public void setNo2(String no2) {
            this.no2 = no2;
         }

         public String getNo224() {
            return no224;
         }

         public void setNo224(String no224) {
            this.no224 = no224;
         }

         public String getCo() {
            return co;
         }

         public void setCo(String co) {
            this.co = co;
         }

         public String getCo24() {
            return co24;
         }

         public void setCo24(String co24) {
            this.co24 = co24;
         }

         public String getO3() {
            return o3;
         }

         public void setO3(String o3) {
            this.o3 = o3;
         }

         public String getO38() {
            return o38;
         }

         public void setO38(String o38) {
            this.o38 = o38;
         }

         public String getO324() {
            return o324;
         }

         public void setO324(String o324) {
            this.o324 = o324;
         }

         public String getPm10() {
            return pm10;
         }

         public void setPm10(String pm10) {
            this.pm10 = pm10;
         }

         public String getPm1024() {
            return pm1024;
         }

         public void setPm1024(String pm1024) {
            this.pm1024 = pm1024;
         }

         public String getPm25() {
            return pm25;
         }

         public void setPm25(String pm25) {
            this.pm25 = pm25;
         }

         public String getPm2524() {
            return pm2524;
         }

         public void setPm2524(String pm2524) {
            this.pm2524 = pm2524;
         }

         public String getIso2() {
            return iso2;
         }

         public void setIso2(String iso2) {
            this.iso2 = iso2;
         }

         public String getIno2() {
            return ino2;
         }

         public void setIno2(String ino2) {
            this.ino2 = ino2;
         }

         public String getIco() {
            return ico;
         }

         public void setIco(String ico) {
            this.ico = ico;
         }

         public String getIo3() {
            return io3;
         }

         public void setIo3(String io3) {
            this.io3 = io3;
         }

         public String getIo38() {
            return io38;
         }

         public void setIo38(String io38) {
            this.io38 = io38;
         }

         public String getIpm10() {
            return ipm10;
         }

         public void setIpm10(String ipm10) {
            this.ipm10 = ipm10;
         }

         public String getIpm25() {
            return ipm25;
         }

         public void setIpm25(String ipm25) {
            this.ipm25 = ipm25;
         }

         public String getAqi() {
            return aqi;
         }

         public void setAqi(String aqi) {
            this.aqi = aqi;
         }

         public String getPrimarypollutant() {
            return primarypollutant;
         }

         public void setPrimarypollutant(String primarypollutant) {
            this.primarypollutant = primarypollutant;
         }

         public String getQuality() {
            return quality;
         }

         public void setQuality(String quality) {
            this.quality = quality;
         }

         public String getTimepoint() {
            return timepoint;
         }

         public void setTimepoint(String timepoint) {
            this.timepoint = timepoint;
         }

         public List<Aqiinfo> getAqiinfo() {
            return aqiinfo;
         }

         public void setAqiinfo(List<Aqiinfo> aqiinfo) {
            this.aqiinfo = aqiinfo;
         }

         public static class Aqiinfo {
            @SerializedName("level")
            private String level;
            @SerializedName("color")
            private String color;
            @SerializedName("affect")
            private String affect;
            @SerializedName("measure")
            private String measure;

            public String getLevel() {
               return level;
            }

            public void setLevel(String level) {
               this.level = level;
            }

            public String getColor() {
               return color;
            }

            public void setColor(String color) {
               this.color = color;
            }

            public String getAffect() {
               return affect;
            }

            public void setAffect(String affect) {
               this.affect = affect;
            }

            public String getMeasure() {
               return measure;
            }

            public void setMeasure(String measure) {
               this.measure = measure;
            }
         }
      }

      public static class Daily {
         @SerializedName("date")
         private String date;
         @SerializedName("week")
         private String week;
         @SerializedName("sunrise")
         private String sunrise;
         @SerializedName("sunset")
         private String sunset;
         @SerializedName("night")
         private List<Night> night;
         @SerializedName("day")
         private List<Day> day;

         public String getDate() {
            return date;
         }

         public void setDate(String date) {
            this.date = date;
         }

         public String getWeek() {
            return week;
         }

         public void setWeek(String week) {
            this.week = week;
         }

         public String getSunrise() {
            return sunrise;
         }

         public void setSunrise(String sunrise) {
            this.sunrise = sunrise;
         }

         public String getSunset() {
            return sunset;
         }

         public void setSunset(String sunset) {
            this.sunset = sunset;
         }

         public List<Night> getNight() {
            return night;
         }

         public void setNight(List<Night> night) {
            this.night = night;
         }

         public List<Day> getDay() {
            return day;
         }

         public void setDay(List<Day> day) {
            this.day = day;
         }

         public static class Night {
            @SerializedName("weather")
            private String weather;
            @SerializedName("templow")
            private String templow;
            @SerializedName("img")
            private String img;
            @SerializedName("winddirect")
            private String winddirect;
            @SerializedName("windpower")
            private String windpower;

            public String getWeather() {
               return weather;
            }

            public void setWeather(String weather) {
               this.weather = weather;
            }

            public String getTemplow() {
               return templow;
            }

            public void setTemplow(String templow) {
               this.templow = templow;
            }

            public String getImg() {
               return img;
            }

            public void setImg(String img) {
               this.img = img;
            }

            public String getWinddirect() {
               return winddirect;
            }

            public void setWinddirect(String winddirect) {
               this.winddirect = winddirect;
            }

            public String getWindpower() {
               return windpower;
            }

            public void setWindpower(String windpower) {
               this.windpower = windpower;
            }
         }

         public static class Day {
            @SerializedName("weathe")
            private Object weathe;
            @SerializedName("temphigh")
            private String temphigh;
            @SerializedName("img")
            private String img;
            @SerializedName("winddirect")
            private String winddirect;
            @SerializedName("windpower")
            private String windpower;

            public Object getWeathe() {
               return weathe;
            }

            public void setWeathe(Object weathe) {
               this.weathe = weathe;
            }

            public String getTemphigh() {
               return temphigh;
            }

            public void setTemphigh(String temphigh) {
               this.temphigh = temphigh;
            }

            public String getImg() {
               return img;
            }

            public void setImg(String img) {
               this.img = img;
            }

            public String getWinddirect() {
               return winddirect;
            }

            public void setWinddirect(String winddirect) {
               this.winddirect = winddirect;
            }

            public String getWindpower() {
               return windpower;
            }

            public void setWindpower(String windpower) {
               this.windpower = windpower;
            }
         }
      }

      public static class Hourly {
         @SerializedName("time")
         private String time;
         @SerializedName("weather")
         private String weather;
         @SerializedName("temp")
         private String temp;
         @SerializedName("img")
         private String img;

         public String getTime() {
            return time;
         }

         public void setTime(String time) {
            this.time = time;
         }

         public String getWeather() {
            return weather;
         }

         public void setWeather(String weather) {
            this.weather = weather;
         }

         public String getTemp() {
            return temp;
         }

         public void setTemp(String temp) {
            this.temp = temp;
         }

         public String getImg() {
            return img;
         }

         public void setImg(String img) {
            this.img = img;
         }
      }
   }
}
